package com.zhongli.devplatform.service.imp.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongli.devplatform.dto.sys.ChapterExercisesDTO;
import com.zhongli.devplatform.dto.ErrorRateDto;
import com.zhongli.devplatform.po.sys.*;
import com.zhongli.devplatform.vo.TopicVO;
import com.zhongli.devplatform.vo.sys.ChapterAndKnowledgeVO;
import com.zhongli.devplatform.vo.sys.ErrorRateVo;
import com.zhongli.devplatform.vo.sys.SubjectVO;
import com.zhongli.devplatform.vo.sys.TopicCorrectRateVo;

import java.util.List;

/**
* @author  WuXiCheng
* @date  2020/7/23 10:12
* @version 1.0
*/
public interface ReadChapterExercisesService extends IService<ReadChapterExercisesPO>{
    ReadChapterExercisesPO checkAnswer(ChapterExercisesDTO exercisesDTO);

    List<SubjectVO> getAllWrongSubjects(Integer currentUserId);

    List<ReadChapterPO> getAllWrongChapter(Integer currentUserId, Integer subjectId);

    List<ReadKnowledgePointPO> getAllWrongKnowledgePoint(Integer currentUserId, Integer chapterId);

    List<TopicVO> getAllWrongTopic(Integer currentUserId, Integer knowledgeId);

    List<ErrorRateVo> studyReportCorrectRate(ErrorRateDto errorRateDto);

    TopicCorrectRateVo studyReportOfAllTopicCorrectRate(ErrorRateDto errorRateDto);

    List<ChapterAndKnowledgeVO> getAllWrongChapterWrongQuestionSet(Integer currentUserId, Integer subjectId);
}
